package com.coollang.smartbra.model;

import io.realm.RealmObject;
import io.realm.annotations.PrimaryKey;

/**
 * @Auther: Timmy
 * @Data: 2017/7/12
 * @Fuction: 运动计数 数据
 */

public class ActionDataModel extends RealmObject {

    @PrimaryKey
    private long id;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    /**
     * 运动类型
     */
    public int type;
    /**
     * 平均心率
     */
    public int ave_heart_rate;
    /**
     * 最高心率
     */
    public int max_rate;
    /**
     * 最低心率
     */
    public int min_rate;
    /**
     * 运动个数
     */
    public long nums;

    /**
     * 运动开始时间
     */
    public long start_time;
    /**
     * 运动结束时间
     */
    public long end_time;

    /**
     * 错误的数 和 时间
     */
    public long error_Nums;

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getAve_heart_rate() {
        return ave_heart_rate;
    }

    public void setAve_heart_rate(int ave_heart_rate) {
        this.ave_heart_rate = ave_heart_rate;
    }

    public int getMax_rate() {
        return max_rate;
    }

    public void setMax_rate(int max_rate) {
        this.max_rate = max_rate;
    }

    public int getMin_rate() {
        return min_rate;
    }

    public void setMin_rate(int min_rate) {
        this.min_rate = min_rate;
    }

    public long getNums() {
        return nums;
    }

    public void setNums(long nums) {
        this.nums = nums;
    }

    public long getStart_time() {
        return start_time;
    }

    public void setStart_time(long start_time) {
        this.start_time = start_time;
    }

    public long getEnd_time() {
        return end_time;
    }

    public long getError_Nums() {
        return error_Nums;
    }

    public void setError_Nums(long error_Nums) {
        this.error_Nums = error_Nums;
    }

    public void setEnd_time(long end_time) {

        this.end_time = end_time;
    }

    @Override
    public String toString() {
        return "ActionDataModel{" +
                "id=" + id +
                ", type=" + type +
                ", ave_heart_rate=" + ave_heart_rate +
                ", max_rate=" + max_rate +
                ", min_rate=" + min_rate +
                ", nums=" + nums +
                ", start_time=" + start_time +
                ", end_time=" + end_time +
                ", error_Nums=" + error_Nums +
                '}';
    }
}
